import request from '@/router/axios'

export function save (data) {
  return request({
    url: '/carOwner',
    method: 'post',
    data:data
  })
}

export function edit (data) {
  return request({
    url: '/carOwner',
    method: 'put',
    data:data
  })
}

export function page (data) {
  return request({
    url: '/carOwner/page',
    method: 'get',
    params:data
  })
}

export function deleteById (id) {
  return request({
    url: '/carOwner/'+id,
    method: 'delete'
  })
}

export function load (data) {
  return request({
    url: '/carOwner/load',
    method: 'post',
    data:data
  })
}


export function getOwnerByOrgId (orgId) {
  return request({
    url: '/carOwner/orgId/'+orgId,
    method: 'get'
  })
}